package edu.gduf.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import edu.gduf.entity.Student;

@Mapper
public interface StudentMapper {
    int deleteByPrimaryKey(Integer stuId);

    int insert(Student record);

    int insertSelective(Student record);

    Student selectByPrimaryKey(Integer stuId);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

	Student selectByIdAndPassword(@Param("stuid") int stuid, @Param("password") String password);

	List<Student> selectByClassId(int classId);

	List<String> groupbyClassId();
}